Fix documenting target-specific dependencies for real
authorAlex Crichton <alex@alexcrichton.com>
Fri, 4 Sep 2015 17:33:11 +0000 (10:33 -0700)
committerAlex Crichton <alex@alexcrichton.com>
Fri, 4 Sep 2015 17:33:11 +0000 (10:33 -0700)
commitd6a9aaf3ec6025c6ecacd6654ae57cb003f7366d
tree2fa72c4850355b40166a969d5411c58f9f6be199
parent71f2a9fa9ba95823ce77127c37d4dd6f442a95f3
Fix documenting target-specific dependencies for real

It's possible to have multiple dependencies of the same name for a project if a
dependency shows up multiple times as a target-specific dependency. This means
that we can't just find the first one with the relevant name and assume it's the
right one, we instead need to check all of them.
src/cargo/ops/cargo_rustc/context.rs
tests/test_cargo_doc.rs